package com.test.shiyan2;

import java.util.Scanner;

public class gudiantu {
    public static void main(String[] args) {
        System.out.print("请输入你想知道的兔子数量的月份：");
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        System.out.println("第"+n+"个月兔子总数"+fun(n));
    }
    private static int fun(int n){
        if (n==1 || n==2)
            return 1;
        else
            return fun(n-1)+fun(n-2);
    }
}
